<!DOCTYPE html>
<html>
<head>
   @include("/include/_header.html", {'title':'宠物管理'}){}
</head>
<body>


  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
  	<input type="hidden" name="id" value="${pet.id!}">
  	<div class="layui-form-item">
      <label class="layui-form-label">宠物编号</label>
      <div class="layui-input-inline">
        <input type="text" name="petNo" lay-verify="required" placeholder="请输入宠物编号" maxlength="50" autocomplete="off" class="layui-input" value="${pet.petNo!}">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">宠物名</label>
      <div class="layui-input-inline">
        <input type="text" name="petName" lay-verify="required" placeholder="请输入宠物名" maxlength="50" autocomplete="off" class="layui-input" value="${pet.petName!}">
      </div>
    </div>
      <div class="layui-form-item">
          <label class="layui-form-label">品种分类</label>
          <div class="layui-input-inline">
              <t:select name="breed" dicCode="animal_breed" lay-verify="required" maxlength="50" blank="请输入品种分类" defaultValue="${pet.breed!}"></t:select>
          </div>
      </div>
      <div class="layui-form-item">
          <label class="layui-form-label">商业分类</label>
          <div class="layui-input-inline">
              <t:select name="bizKind" dicCode="pet_biz_kind" blank="请输入宠物商业分类" defaultValue="${pet.bizKind!}"></t:select>
          </div>
      </div>
      <div class="layui-form-item">
          <label class="layui-form-label">出生日期</label>
          <div class="layui-input-inline">
              <input type="text" name="birthday" id="biz-pet-birthday-date" lay-verify="datetime" placeholder="yyyy-MM-dd HH:mm:ss" autocomplete="off" class="layui-input" value="${pet.birthdayStr!}">
          </div>
      </div>
    <div class="layui-form-item">
        <label class="layui-form-label">健康状态</label>
        <div class="layui-input-inline">
            <t:select name="healthStatus" dicCode="animal_health_status" blank="请选择健康状态" defaultValue="${pet.healthStatus!}"></t:select>
        </div>
    </div>
    <div class="layui-form-item">
    	<div class="layui-row">
    		<div class="layui-col-xs8">
    			<label class="layui-form-label">所属部门</label>
			      <div class="layui-input-block">
			        <input type="text" name="deptName" id="deptName" placeholder="请选择所属部门" autocomplete="off" class="layui-input" value="${deptName!}">
			        <input type="hidden" name="deptId" id="deptId" value=${pet.deptId!}>
			      </div>
    		</div>
    		<div class="layui-col-xs4">
				<button class="layui-btn layui-btn-sm" style="margin-top: 5px;" id="selectDept">请选择</button>
			</div>
			 @include("/component/_select_dept.html", {'domId':'selectDept', 'inputName':'deptName', 'inputId':'deptId'}){}
    	</div>	
    </div>
    <div class="layui-form-item">
	    <label class="layui-form-label">性别</label>
	    <div class="layui-input-inline">
	    	@if(isEmpty(pet)) {
	    		<t:radio name="sex" dicCode="common_sex" defaultValue="0" lay-verify="required"></t:radio>
	    	@}else {
	    		<t:radio name="sex" dicCode="common_sex" defaultValue="${pet.sex!}" lay-verify="required"></t:radio>
	    	@}
	    </div>
	  </div>
      <div class="layui-form-item">
          <label class="layui-form-label">售卖状态</label>
          <div class="layui-input-inline">
              @if(isEmpty(pet)) {
              <t:radio name="saleStatus" dicCode="pet_animal_saleStatus" defaultValue="0" lay-verify="required"></t:radio>
              @}else {
              <t:radio name="saleStatus" dicCode="pet_animal_saleStatus" defaultValue="${pet.saleStatus!}" lay-verify="required"></t:radio>
              @}
          </div>
      </div>
    <div class="layui-form-item">
      <label class="layui-form-label">备注</label>
      <div class="layui-input-inline">
        <textarea name="memo" style="width: 400px; height: 100px;" autocomplete="off" maxlength="255" class="layui-textarea">${pet.memo!}</textarea>
      </div>
    </div>
    
	<div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="form-btn-save" id="form-btn-save" value="保存">
      <input type="button" lay-submit lay-filter="form-btn-cancel" id="form-btn-cancel" value="取消">
    </div>
  </div>
 
 
  @include("/include/_container.html", {'js':'/assets/biz/pet/pet.js'}){}
</body>
</html>